import React from 'react';
import RouterView from "./router/routerView"
import routes from "./router/router"
import {useObserver} from 'mobx-react-lite'
import useStore from "./context/store"
import Loading from "./loading/Loading"
const App:React.FC=()=> {
  let {loading} = useStore()
  return useObserver(()=><div className='index'><RouterView routes={routes}></RouterView>{loading.flag===true?<Loading/>:null}</div>);
}

export default App;
